Passing URL parameter to a Function in Zoho Creator
Here is our approach for passing parameter passed in the URL to a function in Zoho Creator

Approach
We can pass the parameter from page 1 to page 2 using open URL method and use the name of passed parameter in page 2 to process the value passed in the URL
Note: |
|
1. Workflow for passing parameter from form in Page 1
1.1 Tap on "Workflow"

1.2 Select "While using the form"

1.3 Fill up required fields

1.4 Tap on "Add New Action"

1.5 Select "Deluge Script"

1.6 Tap on the button "On Success"

1.7 Copy paste the code to pass parameter

Code Snippet (for passing parameters)
2. Creating Function
2.1 Go to "Workflows"---->Tap on "Function"

2.2 Give a name for the function and select the return type

2.3 Copy paste the code given below

Code Snippet
3. Creating parameter for Page 2
3.1 Open the page to edit view ---> Tap on "Settings"

3.2 In the parameter enter the parameters you want to pass or receive in the page (I passed "employee" as my parameter)

4. Configuring function with button in Page 2
4.1 Double tap the button to edit

4.2 Tap on "Action"

4.3 Select "Action Type"

4.4 Choose the function which we created

4.5 Choose Page 2 Parameter

